package project.ExpectionOperation;

public class ageExpection extends Exception {
    String message;
    public ageExpection(int age) {
        message = "年龄要大于等于0，小于等于120";
    }
    public String warnMess() {
        return message;
    }
}
